module.exports = {
    attachedToBlock: 'for',
    precompile: function (e, t, i, n) {
        var a = t.match(/^\s*([$_a-zA-Z][$_a-zA-Z0-9]*)\s*$/);
        if (!a)
            throw new Error('Illegal variable name is found in wx:for-index.');
        return {
            s: [a[1]],
            d: '"' + a[1] + '"'
        };
    },
    register: function (e, t, i) {
        i._wxForIndex = t.d;
    },
    create: function () {
    }
};
